package com.xuecheng.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Max;

/**
 * @author luhao
 * @ClassName PageParams.java
 * @Description 通用分页参数
 * @createTime 2023/5/10
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "公共的分页参数信息")
public class PageParams {
    @ApiModelProperty(value = "当前页码",required = true)
    //当前页码
    private Long pageNo = 1L;
    @ApiModelProperty(value = "每页条目数",required = true)
    //每页记录数默认值
    @Max(value = 50,message = "每页条目数最多50条")
    private Long pageSize =10L;

}
